]> dgit.raspbian.org Git - gnome-shell.git/commit
status/system: Port to quick settings
authorFlorian Müllner <fmuellner@gnome.org>
Sat, 30 Jul 2022 00:17:15 +0000 (02:17 +0200)
committerMarge Bot <marge-bot@gnome.org>
Wed, 3 Aug 2022 12:41:05 +0000 (12:41 +0000)
commitea00da7fd7fbc90fff62369552583afe3f6750db
tree95fb593e1a26bceeacfd73a8c04aec4c74b872fe
parent62c62eced03f835c709020e5121d2b34e7b26c20
status/system: Port to quick settings

This port is a bit messier than the previous ones, because the
existing menu section translates less directly to the new UI,
which uses a row of individual toggles for settings, lock and
shutdown.

In order to not complicate the grid layout further by supporting
rows with a different number of columns than the overall grid and
children at their natural size, create a custom, non-reactive
SystemItem item that spans an entire row, and contains the individual
toggles.

This works quite well, even with the shutdown item that uses a menu
for the various actions.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2393>
data/theme/gnome-shell-sass/widgets/_quick-settings.scss
js/ui/panel.js
js/ui/status/system.js